package com.atguigu.dao;

import com.atguigu.pojo.RedisServiceConfig;

import java.util.List;

public interface RedisServiceConfigDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addRedisServiceConfig(RedisServiceConfig redisServiceConfig);
    public int deleteRedisServiceConfigById(String redisServiceConfigId);
    public int updateRedisServiceConfig(RedisServiceConfig redisServiceConfig);
    public RedisServiceConfig queryRedisServiceConfigById(String redisServiceConfigId);
    public List<RedisServiceConfig> queryRedisServiceConfigs();
    public RedisServiceConfig queryRedisServiceConfigByServiceId(String serviceId);
    public List<RedisServiceConfig> queryRedisServiceConfigsByPort(String port);
    public Integer queryForPageTotalCount();
    public List<RedisServiceConfig> queryForPageItems(Integer begin, Integer pageSize);
}
